package com.ktgj.service.service.impl;

import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.ContractLinkAirportservicePricelogMapper;
import com.ktgj.service.domain.ContractLinkAirportservicePricelog;
import com.ktgj.service.service.IContractLinkAirportservicePricelogService;

/**
 * 合同机场服务价格记录			
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class ContractLinkAirportservicePricelogServiceImpl implements IContractLinkAirportservicePricelogService 
{
    @Autowired
    private ContractLinkAirportservicePricelogMapper contractLinkAirportservicePricelogMapper;

    /**
     * 查询合同机场服务价格记录			

     * 
     * @param operationlogId 合同机场服务价格记录			
ID
     * @return 合同机场服务价格记录			

     */
    @Override
    public ContractLinkAirportservicePricelog selectContractLinkAirportservicePricelogById(Long operationlogId)
    {
        return contractLinkAirportservicePricelogMapper.selectContractLinkAirportservicePricelogById(operationlogId);
    }

    /**
     * 查询合同机场服务价格记录			
列表
     * 
     * @param contractLinkAirportservicePricelog 合同机场服务价格记录			

     * @return 合同机场服务价格记录			

     */
    @Override
    public List<ContractLinkAirportservicePricelog> selectContractLinkAirportservicePricelogList(ContractLinkAirportservicePricelog contractLinkAirportservicePricelog)
    {
        return contractLinkAirportservicePricelogMapper.selectContractLinkAirportservicePricelogList(contractLinkAirportservicePricelog);
    }

    /**
     * 新增合同机场服务价格记录			

     * 
     * @param contractLinkAirportservicePricelog 合同机场服务价格记录			

     * @return 结果
     */
    @Override
    public int insertContractLinkAirportservicePricelog(ContractLinkAirportservicePricelog contractLinkAirportservicePricelog)
    {
        contractLinkAirportservicePricelog.setCreateTime(DateUtils.getNowDate());
        return contractLinkAirportservicePricelogMapper.insertContractLinkAirportservicePricelog(contractLinkAirportservicePricelog);
    }

    /**
     * 修改合同机场服务价格记录			

     * 
     * @param contractLinkAirportservicePricelog 合同机场服务价格记录			

     * @return 结果
     */
    @Override
    public int updateContractLinkAirportservicePricelog(ContractLinkAirportservicePricelog contractLinkAirportservicePricelog)
    {
        contractLinkAirportservicePricelog.setUpdateTime(DateUtils.getNowDate());
        return contractLinkAirportservicePricelogMapper.updateContractLinkAirportservicePricelog(contractLinkAirportservicePricelog);
    }

    /**
     * 批量删除合同机场服务价格记录			

     * 
     * @param operationlogIds 需要删除的合同机场服务价格记录			
ID
     * @return 结果
     */
    @Override
    public int deleteContractLinkAirportservicePricelogByIds(Long[] operationlogIds)
    {
        return contractLinkAirportservicePricelogMapper.deleteContractLinkAirportservicePricelogByIds(operationlogIds);
    }

    /**
     * 删除合同机场服务价格记录			
信息
     * 
     * @param operationlogId 合同机场服务价格记录			
ID
     * @return 结果
     */
    @Override
    public int deleteContractLinkAirportservicePricelogById(Long operationlogId)
    {
        return contractLinkAirportservicePricelogMapper.deleteContractLinkAirportservicePricelogById(operationlogId);
    }
}
